from rest_framework import serializers

from Day03.models import login

#序列化 获取表中username，password
class userSerializer(serializers.ModelSerializer):
    class Meta:
        #表名
        model = login
        fields = ('username','password')
        ordering = ['-id']